package com.chenfan.mcn.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenfan.common.extension.mybatisplus.enhanced.EnhancedBaseMapper;
import com.chenfan.mcn.model.AeQuarterlyTable;
import com.chenfan.mcn.model.McnPage;
import com.chenfan.mcn.model.dto.AeQuarterlyTableSearchDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author chenguopeng
 * @Date 2021/6/7 14:43
 */
public interface AeQuarterlyTableMapper extends EnhancedBaseMapper<AeQuarterlyTable> {

    /**
     * 获取当前时间前六个月份
     *
     * @return {@link List<String>}
     */
    List<String> getMonths();

    /**
     * Ae分页
     * @param page
     * @param dto
     * @return
     */
    Page<AeQuarterlyTable> selectAeByPage(McnPage<AeQuarterlyTable> page, @Param("dto") AeQuarterlyTableSearchDTO dto);
}
